#ifndef GENERIC_EXCEPTION_H
#define GENERIC_EXCEPTION_H

#include <cstdio>
#include <exception>
using namespace std;

class Instance;

class Exception: public exception {
protected:
	char msg[1024];
public:
	Exception() {
		sprintf(msg, "Exception!");
	}

	Exception( const char *text ) {
		sprintf(msg, text);
	}

	const char *what() {
		return msg;
	}
};

#endif